#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
int main()
{
	int t = 0;
	while (scanf("%d", &t) != EOF)
	{
		if (t > 0)
			printf("1\n");
		if (0 == t)
			printf("0.5\n");
		if (t < 0)
			printf("0\n");
	}
	return 0;
}
